package com.akxy.pt.tsdb;

import com.akxy.pt.tsdb.influxdb.InfluxDbUtil;
import com.akxy.pt.tsdb.service.stress.StressTransformService;
import com.akxy.pt.tsdb.service.test.TestService;
import com.influxdb.client.InfluxDBClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import springfox.documentation.oas.annotations.EnableOpenApi;

import java.text.ParseException;

/**
 * @author Mengfly
 */
@SpringBootApplication
public class MainApplication {

    public static void main(String[] args) throws ParseException {
        ConfigurableApplicationContext run = SpringApplication.run(MainApplication.class, args);
        InfluxDBClient bean = run.getBean(InfluxDBClient.class);
        InfluxDbUtil.init(bean);
    }
}
